<template>
  <div>
    <el-container style="height: 500px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu>
              <el-menu-item index="1" @click="toRouter('/personal')">
                <i class="el-icon-menu"></i>
                <span>我的订单</span>
              </el-menu-item>
              <el-menu-item index="2" @click="toRouter('')">
                <i class="el-icon-menu"></i>
                <span>晒单评价</span>
              </el-menu-item>

          <el-submenu index="3">
            <template slot="title"
              ><i class="el-icon-setting"></i>账户设置</template
            >
            <el-menu-item-group>
              <el-menu-item index="3-1">账户信息</el-menu-item>
              <el-menu-item index="3-2" @click="toRouter('/address')">收货地址</el-menu-item>
              <el-menu-item index="3-3">修改密码</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
    </el-container>
  </div>
</template>
<script>
  export default {
    methods: {
      toRouter(path){
        
        this.$router.push(path);
      }
    }
  }
</script>
